github.com/jinzhu/inflection.inflection.regexp (field)
18 uses
github.com/jinzhu/inflection (current package)
inflections.go#L32: regexp *regexp.Regexp
inflections.go#L129: regexp: regexp.MustCompile("^(?i)(" + uncountable + ")$"),
inflections.go#L138: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.singular) + "$"), replace: strings.ToUpper(value.plural)},
inflections.go#L139: inflection{regexp: regexp.MustCompile(strings.Title(value.singular) + "$"), replace: strings.Title(value.plural)},
inflections.go#L140: inflection{regexp: regexp.MustCompile(value.singular + "$"), replace: value.plural},
inflections.go#L147: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.plural) + "$"), replace: strings.ToUpper(value.singular)},
inflections.go#L148: inflection{regexp: regexp.MustCompile(strings.Title(value.plural) + "$"), replace: strings.Title(value.singular)},
inflections.go#L149: inflection{regexp: regexp.MustCompile(value.plural + "$"), replace: value.singular},
inflections.go#L157: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.find)), replace: strings.ToUpper(value.replace)},
inflections.go#L158: inflection{regexp: regexp.MustCompile(value.find), replace: value.replace},
inflections.go#L159: inflection{regexp: regexp.MustCompile("(?i)" + value.find), replace: value.replace},
inflections.go#L167: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.find)), replace: strings.ToUpper(value.replace)},
inflections.go#L168: inflection{regexp: regexp.MustCompile(value.find), replace: value.replace},
inflections.go#L169: inflection{regexp: regexp.MustCompile("(?i)" + value.find), replace: value.replace},
inflections.go#L258: if inflection.regexp.MatchString(str) {
inflections.go#L259: return inflection.regexp.ReplaceAllString(str, inflection.replace)
inflections.go#L268: if inflection.regexp.MatchString(str) {
inflections.go#L269: return inflection.regexp.ReplaceAllString(str, inflection.replace)